<div class="container">
{{if $Wx['Wx']['summary']}}
<div class="row">
	<div class="col-md-12">
		<portlet portlet="notitle">
		<img width="90px" style="margin:10px 10px" class="pull-left img-circle img-responsive" title="<?php echo $Wx['Wx']['name']; ?>微信公众号" alt="" src="{{$this->Html->url($Wx['Wx']['coverimg']? $Wx['Wx']['coverimg'] : '/img/nophoto-wx.jpg')}}" >
				    <div class="pull-right" style="text-align:center;">
				    <img width="120px" title="扫描二维码关注<?php echo $Wx['Wx']['name']; ?>" alt="" src="{{$this->Html->url($Wx['Wx']['qrcode'])}}" >
				    <p><small>扫描关注 “<b><?php echo $Wx['Wx']['name']; ?></b>”</small></p>
				    </div>
	   <div style="margin:0 130px 0 120px;" class="clearfix">
			<h2 class="Content-title"><?php echo $Wx['Wx']['name']; ?>
				   <small>查看次数：  <span class="ui-stats-num" id="Stats-Wx-{{$Wx['Wx']['id']}}-view_nums"><?php echo $Wx['Wx']['view_nums']; ?></span></small>

			</h2>
						<?php echo $Wx['Wx']['summary']; ?>
	    </div>
		{{if !empty($_SESSION['Auth']['Staff']) }} <!-- admin运维相关 -->
	    		<a class="btn btn-primary" target="_blank" href="/manage/admin/articles/add?wx_id={{$Wx['Wx']['id']}}">新增文章</a>

		{{/if}}
		</portlet>
	</div>
</div>
{{/if}}
<div  class="row">
	<div  class="col-md-8">
		<portlet cache="no" title="微信公众号“{{$Wx['Wx']['name']}}”的最新消息">
{{if $user_cates}}
		<ul class="nav nav-tabs">
				<li {{if empty($_GET['cate_id'])}} class="active"{{/if}}>
			<a href="/wxes/{{($Wx['Wx']['slug']?$Wx['Wx']['slug']:$Wx['Wx']['id'])}}">全部</a></li>
				{{loop $user_cates $cate}}
					<li {{if $_GET['cate_id']==$cate['UserCate']['id']}} class="active"{{/if}}>
			<a href="/wxes/{{($Wx['Wx']['slug']?$Wx['Wx']['slug']:$Wx['Wx']['id'])}}?cate_id={{$cate['UserCate']['id']}}">{{$cate['UserCate']['name']}}</a></li>
				{{/loop}}
		</ul>
{{/if}}
<?php $category_control_name = 'articles';?>
{{loop $Wx['Article']  $item}}
	{{template categories/_list}}
{{/loop}}
<div>
{{if $_GET['article_page'] > 1}}
<a href="?article_page={{($_GET['article_page']-1)}}&cate_id={{$_GET['cate_id']}}">上一页</a>
{{/if}}
{{if count($Wx['Article']) == 30}}
<?php if(empty($_GET['article_page'])){$_GET['article_page']=1;} ?>
<a class="pull-right" href="?article_page={{($_GET['article_page']+1)}}&cate_id={{$_GET['cate_id']}}">下一页</a>
{{/if}}

</div>
		</portlet>
	</div>
	
	<div  class="col-md-4">
		
		<script type="text/javascript">
     document.write('<a style="display:none!important" id="tanx-a-mm_16274845_7484988_25032065"></a>');
     tanx_s = document.createElement("script");
     tanx_s.type = "text/javascript";
     tanx_s.charset = "gbk";
     tanx_s.id = "tanx-s-mm_16274845_7484988_25032065";
     tanx_s.async = true;
     tanx_s.src = "http://p.tanx.com/ex?i=mm_16274845_7484988_25032065";
     tanx_h = document.getElementsByTagName("head")[0];
     if(tanx_h)tanx_h.insertBefore(tanx_s,tanx_h.firstChild);
</script>

		<portlet model="Wx" cached="300" showpages="0" title="最新收录" 		
info="fields[]=Wx.id&fields[]=Wx.name&fields[]=Wx.created" 
		portlet="default" list_tpl="scripts" limit="8" order="id desc" ulclass="portlet-title-list">
		</portlet>
		
	</div>
</div>
</div>